package org.mall.modules.pojo.order.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.mall.common.util.jsonschema.Long2StringSerializer;
import org.mall.common.util.jsonschema.String2LongDeserialize;

import javax.validation.constraints.NotNull;

/***
 *@author yinxucun
 *@date 2019-12-01 16:24 
 */
@Data
public class CredentialVerifyVo {
    private String userId;

    @NotNull
    private String mac;
    @NotNull
    @JsonDeserialize(using = String2LongDeserialize.class)
    @JsonSerialize(using = Long2StringSerializer.class)
    private Long  orderId;
    @NotNull
    @JsonProperty("IMEI")
    private String IMEI;
}
